<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_spPage" value="true"/>
			 <jsp:param name="_useCalendar" value="true"/>
			 <jsp:param name="_useSuggest" value="true"/>
			 <jsp:param name="_useOrgSuggest" value="true"/>
			 <jsp:param name="_useEmpSuggest" value="true"/>
		</jsp:include>

		<title>员工信息查询</title>
		<script language="JavaScript">   
			$.ready = function()
			{
				//人员身份，根据需要传入可选择的人员身份，personnelIdentification=003001,003002,003003......
				var personnelIdentification = "${param.personnelIdentification}";
				//在岗状态
				var onJobSituation = "${param.onJobSituation}";
				if(personnelIdentification!="")
				{
					var s = personnelIdentification.split(",");
					$("#personnelIdentification").find("option").each(function(i){
						var test = false;
						for(var i=0;i<s.length;i++)
						{
							if($(this).val()==s[i])
							{
								test = true;
							}
						}
						if(!test)
							$(this.remove());
					});
				}
				if(onJobSituation!="")
				{
					var s = onJobSituation.split(",");
					$("#onJobSituation").find("option").each(function(i){
						var test = false;
						for(var i=0;i<s.length;i++)
						{
							if($(this).val()==s[i])
							{
								test = true;
							}
						}
						if(!test)
							$(this.remove());
					});
				}
				$("#companyName").getSuggest({
					jsonData : orgs,
					formatStr : ["orgId","orgName"],
					matchStr : ["jp","qp","orgId"],
					selectedMatch : new Array(["companyName","orgName"],["companyId","orgId"])
				});
				$("#employeeName").getSuggest({
					jsonData : emps,
					formatStr : ["employeeCode","employeeName"],
					matchStr : ["jp","qp","employeeCode"],
					selectedMatch : new Array(["employeeName","employeeName"],["employeeCode","employeeCode"])
				});
			}
		</script>
	</head>
	<body>
	<form action="listCommonEmployee.do?jspPage=/jsp/common/org_emp/lst_employee.jsp&type=${param.type}&personnelIdentification=${param.personnelIdentification}&onJobSituation=${param.onJobSituation}&filterRole=${param.filterRole}" name="from1" method="post">
	<input type="hidden" name="jspPage" value="${jspPage}"/>
	<div id="body_div">
	<w:ShowTitle name="查询员工" useSubmitKey="false">
	
	</w:ShowTitle>
	<div id="body_content">
			<table width="100%" border="0">
				<tr>
					<td width="90">员工编号</td>
					<td class="left_align"><input type="text" name="empEmployee.employeeCode" id="employeeCode" value="${empEmployee.employeeCode}"/></td>
					<td>员工姓名</td>
					<td class="left_align"><input type="text" name="empEmployee.employeeName" id="employeeName" value="${empEmployee.employeeName}"/></td>
				</tr>
				<tr>
					<td>身份证号</td>
					<td class="left_align"><input type="text" name="empEmployee.idNumber" value="${empEmployee.idNumber}"/></td>
					<td>性别</td>
					<td class="left_align">
						<w:select name="empEmployee.employeeGender" value="${empEmployee.employeeGender}">
							<w:option optionLabel="请选择" optionValue=""></w:option>
							<w:option optionLabel="男" optionValue="男"></w:option>
							<w:option optionLabel="女" optionValue="女"></w:option>
						</w:select>
					</td>
				</tr>
				<tr>
					<td>出生日期</td>
					<td class="left_align" colspan="3">
					  	<input type="text" name="birthdayQueryStartDate" onFocus="new WdatePicker()" readOnly="readOnly" class="inputCal" value="${birthdayQueryStartDate}"/>
						至
						<input type="text" name="birthdayQueryEndDate" onFocus="new WdatePicker()" readOnly="readOnly" class="inputCal" value="${birthdayQueryEndDate}"/>
					</td>
				</tr>
				<tr>
					<td>所在单位</td>
					<td class="left_align">
						<input type="hidden" id="companyId" name="empEmployee.companyId" value="${empEmployee.companyId}"/>
		              	<input type="text" id="companyName" name="empEmployee.companyName" value="${empEmployee.companyName}"/>
					</td>
					<td>所在部门</td>
					<td class="left_align">
						<input type="hidden" id="deptId" name="empEmployee.deptId" value="${empEmployee.deptId}"/>
              			<input type="text" id="deptName" name="empEmployee.deptName" value="${empEmployee.deptName}"/>
					</td>
				</tr>
				<tr>
					<td>行政级别</td>
					<td class="left_align">
						<w:select name="empEmployee.administrativeLevels" value="${empEmployee.administrativeLevels}">
							<w:option optionLabel="请选择" optionValue=""></w:option>
							<w:options options="${CodeDict}" optionLabel="codeName" optionValue="codeId" filterFieldName="parentCodeId" filterFieldValue="005"></w:options>
						</w:select>
					</td>
					<td>政治面貌</td>
					<td class="left_align">
						<w:select name="empEmployeeExtend.politicsStatus" value="${empEmployeeExtend.politicsStatus}">
							<w:option optionLabel="请选择" optionValue=""></w:option>
							<w:options options="${CodeDict}" optionLabel="codeName" optionValue="codeId" filterFieldName="parentCodeId" filterFieldValue="001"></w:options>
						</w:select>
					</td>
				</tr>
				<tr>
					<td>在岗情况</td>
					<td class="left_align">
						<w:select name="empEmployee.onJobSituation" value="004001" styleId="onJobSituation">
							<w:option optionLabel="请选择" optionValue=""></w:option>
							<w:options options="${CodeDict}" optionLabel="codeName" optionValue="codeId" filterFieldName="parentCodeId" filterFieldValue="004"></w:options>
						</w:select>
					</td>
					<td>人员身份</td>
					<td class="left_align">
						<w:select name="empEmployee.personnelIdentification" styleId="personnelIdentification">
							<w:option optionLabel="请选择" optionValue=""></w:option>
							<w:options options="${CodeDict}" optionLabel="codeName" optionValue="codeId" filterFieldName="parentCodeId" filterFieldValue="003"></w:options>
						</w:select>
					</td>
				</tr>
				<tr>
					 <td colspan="4">
						<input name="button" type="submit" class="btn_standard" onclick="" value="查询" />
						<input name="button" type="button" class="btn_standard" onclick="window.top.close()" value="取消" />
					</td>
				</tr>
			</table>
	
		</div>	
		</form>
	</body>
</html>